package com.chen.spring.cloud.miniapp.api.feign.service;

import com.chen.spring.cloud.miniapp.api.feign.hystrix.GoodServiceHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "spring-cloud-service-good",fallback = GoodServiceHystrix.class)
public interface GoodService {

    @RequestMapping(value = "/good/list", method = RequestMethod.GET)
    public String list(@RequestParam(value = "gt_id") String gt_id,
                                @RequestParam(value = "hot_tab") Integer hot_tab,
                                @RequestParam(value = "limit") String limit,
                                @RequestParam(value = "is_recommend") String is_recommend,
                                @RequestParam(value = "is_hot") String is_hot);

}
